package com.ssm.zy.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Data
public class Comment implements Serializable {//评论表
    private static final long serialVersionUID = -9084332495284489553L;

    private int commentId;
    private int userId;//评论者Id
    private int postId;//帖子Id
    private String commentContent;//评论内容
    private int commentPraise;//评论获赞量
    private Date commentTime;//评论时间
    private int pid;//父级Id，是0的话为帖子的1级评论
    private int commentDel;
}
